﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;
namespace BLL
{
 public    class UserInfoBLL
    {
     UserInfoDAL dal = new UserInfoDAL();
     /// <summary>
     /// 用户的详细显示
     /// </summary>
     /// <returns></returns>
     public List<UserInfo> UserInfo_Show()
     {
         return dal.UserInfo_Show();

     }
     /// <summary>
     /// 用户详情的添加
     /// </summary>
     /// <param name="m"></param>
     /// <returns></returns>
     public int UserInfo_Insert(UserInfo u)
     {
         return dal.UserInfo_Insert(u);
     }
     /// <summary>
     /// 用户名的删除
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public int UserInfo_Delete(int id)
     {
         return dal.UserInfo_Delete(id);
     }
     /// <summary>
     /// 用户详情的显示或修改第一步
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public UserInfo UserInfo_details(int id)
     {
         return dal.UserInfo_details(id);
     }
     /// <summary>
     /// 用户表修改
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public int UserInfo_Edit(UserInfo u)
     {
         return dal.UserInfo_Edit(u);
     }
     public List<UserInfo> UserInfo_Search(int RoleId)
     {
         return dal.UserInfo_Search(RoleId);
     }


    }
}
